import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

import { routes } from './routes'

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})
/**
 * import Vue from 'vue'
 * import Router from 'vue-router'
 *
 * Vue.use(Router)
 *
 * const router = new Router({
 *  mode: history || hash
 * })
 *
 */

export default router
